<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>用户管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="{:U('admin/Index/index')}">主页</a>
            </li>
            <li class="active">
                <strong>用户管理</strong>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content">
  	<div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>用户管理</h5>
        </div>
        <div class="ibox-content">
            <table class="table table-hover table-bordered">
                <thead>
                <tr>
                	<th>编号</th>
                    <th>用户名</th>
                    <th>创建时间</th>
                    <th>最后登陆时间</th>
                    <th>状态</th>
                    <th style="text-align:center">操作</th>
                </tr>
                </thead>
                <tbody>
				<volist name="users" id="vo">
					<tr class="user">
	                    <td class="user_id">{$vo.id}</td>
	                    <td>{$vo.username}</td>
	                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
	                    <td><if condition="$vo['last_login_time'] eq 0">还未登录<else/>{$vo.last_login_time|date="Y-m-d H:i:s",###}</if></td>
	                    <td width="150">
                            {$vo.status|user_status}
                        </td>
	                    <td style="text-align:center" width="200">
                            <if condition="$vo['status'] eq 0">
                                <a href="{:U('admin/User/ban/id/'.$vo['id'])}" class="btn btn-warning btn-sm">禁用</a>
                                <else/><a href="{:U('admin/User/enable/id/'.$vo['id'])}" class="btn btn-success btn-sm">启用</a>
                            </if>
	                    	<!-- <a href="{:U('admin/User/del/id/'.$vo['id'])}" class="btn btn-danger btn-sm user_del">删除</a> -->
	                    </td>
	                </tr>
				</volist>
                </tbody>
            </table>
            {$page}
        </div>
    </div>
</div>



        